﻿@model IEnumerable<CloudFranceTriple.Models.webpages_Roles>
@{
    ViewBag.Title = "Roles";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="content-padding">
    <h1>
        <a href="/usermanager/user">@CloudFranceTriple.WebRole.Properties.Resources.UserListTitle</a>
        <span>- </span>@CloudFranceTriple.WebRole.Properties.Resources.RoleIndexTitle (@Model.Count())
    </h1>
    @*<p>
    @Html.ActionLink("Create New", "Create")
</p>*@
    <table>
        <tr>
            <th>
                @CloudFranceTriple.WebRole.Properties.Resources.RoleName
            </th>
            <th></th>
        </tr>
        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.RoleName)
                </td>
                <td>
                    @Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.RoleUsersButton, "Index", "RoleUsers", new { id = item.RoleId, area = "UserManager" }, null)
                    @*            @Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.ButtonEdit, "Edit", new { id = item.RoleId }) |
            @Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.ButtonDetails, "Details", new { id = item.RoleId }) |
            @Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.ButtonDelete, "Delete", new { id = item.RoleId })*@
                </td>
            </tr>
        }
    </table>
</div>
